<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="./js/vue.js"></script>

    <div class="box">
        <a href="http://baidu.com">百度一下</a><br>
        <a v-bind:href="url">百度一下(v-bind)</a><br>
        <!-- v-bind的缩写方式 -->
        <a :href="url">百度一下(简写方式)</a>

        <p v-bind:title='msg'>爱上对方过后就哭了</p>
        <p :title='mag'>v-bind简写方式</p>
    </div>

    <script>
        const vm_bind = new Vue({
            el: '.box',
            data: {
                url: 'http://baidu.com',
                msg: 'small-so'
            }
        })
    </script>
</body>

</html>